//
//  TraveAreaModel.m
//  ToWhere
//
//  Created by dllo on 15/11/13.
//  Copyright © 2015年 www.TE.com. All rights reserved.
//

#import "TraveAreaModel.h"

@implementation TraveAreaModel

-(void)dealloc
{
    [_ID release];
    [_image_url release];
    [_name_en release];
    [_name_zh_cn release];
    [_poi_count release];
    [super dealloc];
}

-(instancetype)initWithNSDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+(TraveAreaModel *)travelAreaModelinitWithNSDictionary:(NSDictionary *)dic
{
    TraveAreaModel *moedel = [[TraveAreaModel alloc]initWithNSDictionary:dic];
    
    return [moedel autorelease];
    
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        
        self.ID = value;
        
    }
}

@end
